﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AAA.Schedule
{
    public class DefaultTaskGroup : AbstractTask
    {
        private List<ITask> _lstTask;

        public DefaultTaskGroup()
        {
            _lstTask = new List<ITask>();
        }

        public void Add(ITask task)
        {
            _lstTask.Add(task);
        }

        public void Remove(string strTaskName)
        {
            for (int i = _lstTask.Count - 1; i >= 0; i--)
                if (_lstTask[i].TaskName == strTaskName)
                    _lstTask.RemoveAt(i);
        }

        public override IExecuteResult Execute(Dictionary<string, object> dicData)
        {
            return null;
        }
    }
}
